<div class="modal fade bs-modal-md" id="modelContent">
	<div class="modal-dialog modal-md">
		<div class="modal-content" style="width:810px;"></div>
	</div>
</div>
<div class="portlet box green">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-cog"></i>
			查询内容
		</div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
		</div>
		<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search">
				<i class="fa fa-search"></i>
				查询
			</a>
			<a href="javascript:;" class="btn white btn-sm search-reset">
				<i class="fa fa-eraser"></i>
				清除
			</a>
		</div>
	</div>
	<div class="portlet-body form">
		<form action="/supplierInfo/list" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
			<div class="form-body">
				<div class="row">
					
					<div class="col-md-3">
						<label class="control-label col-md-4">供应商类型：</label>
						<div class="col-md-8">
							<select name="typeId" class=" form-control">
								<option value="">--请选择--</option>
								#foreach($type in $!typeList)
								<option value="$!type.id" #if($!typeId == $!type.id) selected #end>$!type.name</option>
								#end
							</select>
						</div>
					</div>
					
					<div class="col-md-3">
						<label class="col-md-4 control-label">供应商名称：</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="name" value="$!name" maxlength="10">
						</div>
					</div>
					
				</div>
			</div>
		</form>
	</div>
</div>
<div class="portlet box green">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-cogs"></i>
			库存管理 > 采购管理 > 供应商管理
		</div>
		<div class="tools">
			<a href="javascript:;" class="collapse" data-original-title="" title=""> </a>
		</div>
		<div class="actions">
			<a href="#modelContent" thref="/supplierInfo/add" class="btn white btn-sm ajax-model-get" data-toggle="modal">
				<i class="fa fa-plus"></i>
				新增
			</a>
		</div>
	</div>
	<div class="portlet-body">
		<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
				<table class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th>供应商ID</th>
							<th>供应商名称</th>
							<th>类型</th>
							<th>折扣</th>
							<th>联系人</th>
							<th>联系电话</th>
							<th>联系手机</th>
							<th>邮编</th>
							<th>省</th>
							<th>市</th>
							<th>县</th>
							<th>QQ</th>
							<th>开票税率</th>
							<th>税额是否计入成本</th>
							<th class="col-md-2">操作</th>
						</tr>
					</thead>
					<tbody>
						#foreach ($!item in $!_thisPage.result)
						<tr>
							<td>$!item.id</td>
							<td>$!item.name</td>
							<td>$!item.typeName</td>
							<td>$!item.rebate</td>
							<td>$!item.linkMan</td>
							<td>$!item.phone</td>
							<td>$!item.mobile</td>
							<td>$!item.postCode</td>
							<td>$!item.province</td>
							<td>$!item.city</td>
							<td>$!item.area</td>
							<td>$!item.qqNum</td>
							<td>$!item.tickRate</td>
							<td>
								#if($item.isRateCost)
						    	<span class="glyphicon glyphicon-ok-circle" style="color: lightgreen"></span>
						    	#else 
						    		<span class="glyphicon glyphicon-remove-circle" style="color: red"></span>
						    	#end
							</td>
							<td>
								<a class="btn green btn-outline btn-sm ajax-model-get" data-toggle="modal" href="#modelContent"
									thref="/supplierInfo/edit?id=$!item.id&$!queryReturn">
									<i class="fa fa-edit"></i>
									修改
								</a>
								<a class="btn green btn-outline btn-sm ajax-delete" href="javascript:;" thref="/supplierInfo/delete?id=$!item.id">
									<i class="fa fa-trash"></i>
									删除
								</a>
							</td>
						</tr>
						#end
					</tbody>
				</table>
			</div>
			#set($page=$_thisPage) #set($pageUrl="/supplierInfo/list?$!queryString&pageNo=") #parse("_page.htm")
		</div>
	</div>
</div>
<script type="text/javascript" src="/assets/scripts/views-permission.js"></script>
<script type="text/javascript">
	$("input[name=name]").focus();
</script>